

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Repository [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Automation Interface,Automation Interface Repository,Repository,Repository Automation Interface,Repository Attributes,Repository Methods,Models Collection">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Repository</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="repository.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="author.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_SubHeadingL1"><span class="f_SubHeadingL1">public Class</span></p>
<p class="p_BodyText"><span class="f_BodyText">The </span><span class="f_BodyText" style="font-style: italic;">Repository</span><span class="f_BodyText"> is the main container of all structures such as models, packages and elements. You can iteratively begin accessing the model using the </span><span class="f_BodyText" style="font-style: italic;">Models</span><span class="f_BodyText"> collection. It also has some convenient methods to directly access the structures without having to locate them in the hierarchy first.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Associated table in .EAP file: </span><span class="f_BodyText" style="font-style: italic;">&lt;none&gt;</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Repository Attributes</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" bgcolor="#e3e6ed" style="width:205px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Attribute</span></p>
</td>
<td valign="top" width="96" bgcolor="#e3e6ed" style="width:96px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Type</span></p>
</td>
<td valign="top" width="377" bgcolor="#e3e6ed" style="width:377px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Notes</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Authors</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. The system </span><span class="f_Tabletext" style="font-style: italic;">Authors</span><span class="f_Tabletext"> collection. Contains 0 or more </span><span class="f_Tabletext" style="font-style: italic;">Author objects</span><span class="f_Tabletext">, each of which can be associated with, for example, elements or diagrams as the item author or owner. Use </span><span class="f_Tabletext" style="font-style: italic;">AddNew</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-style: italic;">Delete</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-style: italic;">GetAt</span><span class="f_Tabletext"> to manage Authors.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">BatchAppend</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read/Write. Set this property to </span><span class="f_Tabletext" style="font-weight: bold;">true</span><span class="f_Tabletext"> when your automation client has to rapidly insert many elements, operations, attributes and/or operation parameters. Set to </span><span class="f_Tabletext" style="font-weight: bold;">false</span><span class="f_Tabletext"> when work is complete.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">This can result in 10- to 20-fold improvement in adding new elements in bulk.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Clients</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. A list of </span><span class="f_Tabletext" style="font-style: italic;">Clients</span><span class="f_Tabletext"> associated with the project. You can modify, delete and add new </span><span class="f_Tabletext" style="font-style: italic;">Client objects</span><span class="f_Tabletext"> using this collection.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ConnectionString</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. The filename/connection string of the current Repository.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Datatypes</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. The </span><span class="f_Tabletext" style="font-style: italic;">Datatypes</span><span class="f_Tabletext"> collection. Contains a list of </span><span class="f_Tabletext" style="font-style: italic;">Datatype objects,</span><span class="f_Tabletext"> each representing a data type definition for either data modeling or code generation purposes.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">EAEdition</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="eaeditiontypes_enum.htm">EAEditionTypes</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. Returns </span><span class="f_Tabletext">the level of licensed functionality available to the current repository.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">EnableCache</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read/Write: An optimization for pre-loading package objects when dealing with large sets of automation objects.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">EnableUIUpdates</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read/Write. Set this property to </span><span class="f_Tabletext" style="font-weight: bold;">false</span><span class="f_Tabletext"> to improve the performance of changes to the model; e.g. bulk addition of elements to a package. To reveal the changes to the user, call </span><span class="f_Tabletext" style="font-style: italic;">Repository.RefreshModelView()</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">FlagUpdate</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read/Write. Instructs Enterprise Architect to update the Repository with the </span><span class="f_Tabletext" style="font-style: italic;">LastUpdate</span><span class="f_Tabletext"> value.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">InstanceGUID</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only: The identifier string identifying the Enterprise Architect runtime session.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Issues</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. The </span><span class="f_Tabletext" style="font-style: italic;">System Issues</span><span class="f_Tabletext"> list. Contains </span><span class="f_Tabletext" style="font-style: italic;">ProjectIssues objects,</span><span class="f_Tabletext"> each detailing a particular issue as it relates to the project as a whole.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">LastUpdate</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. The identifier string identifying the Enterprise Architect runtime session and the timestamp for when it was set.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">LibraryVersion</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Long</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. The build number of the Enterprise Architect runtime.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><a name="models"></a><span class="f_Tabletext" style="font-weight: bold;">Models</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a> </span><br>
<span class="f_Tabletext" style="font-style: italic;">of type <a href="package_2.htm">Package</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext" style="margin: 4px 0px 4px 5px;"><span class="f_Tabletext">Read only. </span><span class="f_Tabletext" style="font-style: italic;">Models</span><span class="f_Tabletext"> are of type </span><span class="f_Tabletext" style="font-style: italic;">package</span><span class="f_Tabletext"> and belong to a collection of packages. This is the top level entry point to an Enterprise Architect project file. Each model is a </span><span class="f_Tabletext" style="font-style: italic;">root node</span><span class="f_Tabletext"> in the </span><span class="f_UIControl">Project Browser </span><span class="f_Tabletext">and can contain items such as Views and packages.</span></p>
<p class="p_Tabletext" style="margin: 4px 0px 4px 5px;"><span class="f_Tabletext">A model is a special form of a package; it has a </span><span class="f_Tabletext" style="font-style: italic;">ParentID</span><span class="f_Tabletext"> of </span><span class="f_Tabletext" style="font-weight: bold;">0</span><span class="f_Tabletext">. By iterating through all models, you can access all the elements within the project hierarchy.</span></p>
<p class="p_Tabletext" style="margin: 4px 0px 4px 5px;"><span class="f_Tabletext">You can also use the </span><span class="f_Tabletext" style="font-style: italic;">AddNew</span><span class="f_Tabletext"> function to create a new model. A model can be deleted, but remember that everything contained in the model is deleted as well.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ObjectType</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="objecttypeenum.htm">ObjectType</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. Distinguishes objects referenced through the </span><span class="f_Tabletext">Dispatch interface.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ProjectGUID</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only: Returns a unique ID for the project.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">PropertyTypes</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. Collection of </span><span class="f_Tabletext" style="font-style: italic;"><a href="propertytype.htm">Property Types</a></span><span class="f_Tabletext"> available to the Repository.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Resources</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. Contains available </span><span class="f_Tabletext" style="font-style: italic;">ProjectResource</span><span class="f_Tabletext"> objects to assign to work items within the project. Use the </span><span class="f_Tabletext" style="font-weight: bold;">add</span><span class="f_Tabletext"> </span><span class="f_Tabletext" style="font-weight: bold;">new</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-weight: bold;">modify</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">delete</span><span class="f_Tabletext"> functions to manage resources.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Stereotypes</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. The </span><span class="f_Tabletext" style="font-style: italic;"><a href="stereotype.htm">Stereotypes</a></span><span class="f_Tabletext"> collection. A list of </span><span class="f_Tabletext" style="font-style: italic;">Stereotype objects</span><span class="f_Tabletext"> that contain information on a stereotype and which elements it can be applied to.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">SuppressEADialogs</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read/Write. Set this property in the </span><span class="f_Tabletext" style="font-style: italic;"><a href="broadcastpostnewelement.htm">EA_OnPostNewElement</a></span><span class="f_Tabletext"> or </span><span class="f_Tabletext" style="font-style: italic;"><a href="broadcastpostnewconnector.htm">EA_OnPostNewConnector</a></span><span class="f_Tabletext"> broadcast events to control whether Enterprise Architect should suppress showing the default </span><span class="f_UIControl">Properties</span><span class="f_Tabletext"> dialogs to the user when an element or connector is created.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Tasks</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. A list of system tasks (to do list). Each entry is a </span><span class="f_Tabletext" style="font-style: italic;"><a href="task.htm">Task</a> Item</span><span class="f_Tabletext">; you can modify, delete and add new tasks.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="205" style="width:205px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Terms</span></p>
</td>
<td valign="top" width="96" style="width:96px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="377" style="width:377px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Read only. The project </span><span class="f_Tabletext" style="font-style: italic;">Glossary</span><span class="f_Tabletext">. Each </span><span class="f_Tabletext" style="font-style: italic;"><a href="term.htm">Term</a></span><span class="f_Tabletext"> object is an entry in the Glossary. Add, modify and delete Terms to maintain the Glossary.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Repository Methods</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" bgcolor="#e3e6ed" style="width:206px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Method</span></p>
</td>
<td valign="top" width="88" bgcolor="#e3e6ed" style="width:88px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Type</span></p>
</td>
<td valign="top" width="385" bgcolor="#e3e6ed" style="width:385px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Notes</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ActivateDiagram (l</span><span class="f_Tabletext" style="font-weight: bold;">ong DiagramID</span><span class="f_Tabletext" style="font-weight: bold;">)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Activates an already open diagram (that is, makes it the active tab) in the main Enterprise Architect user interface.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">DiagramID: Long - the ID of the diagram to make active.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ActivatePerspective (s</span><span class="f_Tabletext" style="font-weight: bold;">tring, long</span><span class="f_Tabletext" style="font-weight: bold;">)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold; color: #ff0000;">Deprecated</span><span class="f_Tabletext"> - no longer in use.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ActivateTab (s</span><span class="f_Tabletext" style="font-weight: bold;">tring Name</span><span class="f_Tabletext" style="font-weight: bold;">)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Activates an open Enterprise Architect tabbed view.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters: </span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Name: String - the name of the view to activate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ActivateToolbox (s</span><span class="f_Tabletext" style="font-weight: bold;">tring Toolbox, long Options</span><span class="f_Tabletext" style="font-weight: bold;">)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Activates a </span><span class="f_UIControl">Toolbox</span><span class="f_Tabletext"> page in the GUI.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Toolbox: String - the name of the </span><span class="f_UIControl">Toolbox</span><span class="f_Bulletlist1"> page to activate.</span></li>
<li><span class="f_Bulletlist1">Options: Long - reserved for future use.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Returns</span><span class="f_Tabletext" style="font-weight: bold;"> true</span><span class="f_Tabletext"> if the specified </span><span class="f_UIControl">Toolbox</span><span class="f_Tabletext"> page is successfully activated, otherwise returns </span><span class="f_Tabletext" style="font-weight: bold;">false</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">AddDefinedSearches (s</span><span class="f_Tabletext" style="font-weight: bold;">tring sXML</span><span class="f_Tabletext" style="font-weight: bold;">)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enables you to enter a set of defined searches that last in Enterprise Architect for the life of the application. When Enterprise Architect loads again they must be inserted again by your Add-In.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">sXML: String - the XML of the defined searches; you can get this XML by performing an </span><span class="f_Bulletlist1" style="font-style: italic;">export</span><span class="f_Bulletlist1"> of the searches from the </span><span class="f_UIControl"><a href="creating_search_filters.htm">Manage Searches</a></span><span class="f_Bulletlist1"><a href="creating_search_filters.htm"> dialog</a> in Enterprise Architect.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">AddPerspective </span><span class="f_Tabletext" style="font-weight: bold;">(string Perspective, long Options)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold; color: #ff0000;">Deprecated</span><span class="f_Tabletext"> - no longer in use.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">AddTab (string TabName, string ControlID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">activeX custom control</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Adds an ActiveX custom control as a tabbed window. Enterprise Architect creates a control and, if successful, returns its Unknown pointer, which can be used by the caller to manipulate the control.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">TabName: String - used as the tab caption.</span></li>
<li><span class="f_Bulletlist1">ControlID: String - the ProgID of the control. e.g. Project1,UserControl1.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">AdviseConnectorChange (long ConnectorID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Provides an Add-In or automation client with the ability to advise the Enterprise Architect user interface that a particular connector has changed and, if it is visible in any open diagram, to reload and refresh that connector for the user. </span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ConnectorID: Long - the ID of the connector.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">AdviseElementChange (long ObjectID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Provides an Add-In or automation client with the ability to advise the Enterprise Architect user interface that a particular element has changed and, if it is visible in any open diagram, to reload and refresh that element for the user.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters: </span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ObjectID: Long - the ID of the element.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ChangeLoginUser (string Name, string Password)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Sets the currently logged on user to be that specified by a name and password. This logs the user into the repository when security is enabled. If security is not enabled an exception (</span><span class="f_Tabletext" style="font-style: italic;">Security not enabled</span><span class="f_Tabletext">) is thrown.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Name: String - the name of the user.</span></li>
<li><span class="f_Bulletlist1">Password: String - the password of the user.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ClearAuditLogs (Object StartDateTime, Object EndDateTime)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Clears all Audit Logs from the model.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">StartDateTime: Variant [DateTime] - the earliest date and time of log entries to clear.</span></li>
<li><span class="f_Bulletlist1">EndDateTime; Variant [DateTime] - the latest date and time of log entries to clear.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">If </span><span class="f_Tabletext" style="font-style: italic;">StartDateTime</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-style: italic;">EndDateTime</span><span class="f_Tabletext"> are not null then only log items that fall into this period are cleared.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Returns </span><span class="f_Tabletext" style="font-weight: bold;">true</span><span class="f_Tabletext"> for success, </span><span class="f_Tabletext" style="font-weight: bold;">false</span><span class="f_Tabletext"> for failure.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Notes:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">This method cannot be undone. It is strongly advised that you call </span><span class="f_TiporNoteText" style="font-style: italic;">SaveAuditLogs</span><span class="f_TiporNoteText"> first to backup the logs.</span></li>
<li><span class="f_TiporNoteText">This method might fail if the user logged into the model does not have the correct access permission.</span></li>
</ul>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><a name="clear"></a><span class="f_Tabletext" style="font-weight: bold;">ClearOutput (string Name)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Removes all the text from a tab in the </span><span class="f_UIControl">Output </span><span class="f_Tabletext">window. </span><span class="f_Tabletext" style="font-style: italic;">See also</span><span class="f_Tabletext"> <a href="repository3.htm#Create">CreateOutputTab</a>, <a href="repository3.htm#Ensure">EnsureOutput Visible</a>, <a href="repository3.htm#Write">WriteOutput</a>.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Name: String - the name of the tab to remove text from.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">CloseAddins ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Called by automation controllers to ensure that Add-Ins created in </span><br>
<span class="f_Tabletext">.NET do not linger after all controller references to Enterprise Architect have been cleared.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">CloseDiagram (long DiagramID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Closes a diagram in the current list of diagrams that Enterprise Architect has open.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">DiagramID: Long - the ID of the diagram to close.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">CloseFile ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Closes any open file.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">CreateModel </span><span class="f_Tabletext" style="font-weight: bold;">(CreateModelType CreateType, string FilePath, long ParentWnd)<a name="cm"></a></span><br>
<span class="f_Tabletext" style="font-weight: bold;">&nbsp;</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Creates a new .eap model file based on the standard </span><span class="f_Tabletext">Enterprise Architect</span><span class="f_Tabletext"> Base model, or a shortcut .eap based on a provided SQL connection. </span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">CreateType: <a href="createmodelitype_enum.htm">CreateModelType</a> - Specify whether to make a new copy of the EABase .eap model, or create a .eap file shortcut to a DBMS repository. The latter option requires a dialog to be opened for the user to provide SQL connection details.</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">FilePath: String - Destination for new .eap file.</span></li>
<li><span class="f_Bulletlist1">ParentWnd: Long - Window handle to act as the parent for the SQL connection dialog. Only required when using </span><span class="f_Bulletlist1" style="font-style: italic;">cmEAPFromSQLRepository</span><span class="f_Bulletlist1">. </span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Returns </span><span class="f_Tabletext" style="font-weight: bold;">true</span><span class="f_Tabletext"> when the new file is created, otherwise returns </span><span class="f_Tabletext" style="font-weight: bold;">false</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><a name="create"></a><span class="f_Tabletext" style="font-weight: bold;">CreateOutputTab (string Name)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Creates a tab in the </span><span class="f_UIControl">Output </span><span class="f_Tabletext">window. </span><span class="f_Tabletext" style="font-style: italic;">See also</span><span class="f_Tabletext"> <a href="repository3.htm#Clear">ClearOutput</a>, <a href="repository3.htm#Ensure">EnsureOutput Visible</a>, <a href="repository3.htm#Write">WriteOutput</a>.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Name: String - the name of the tab to create.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">DeletePerspective (string Perspective, long Options)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold; color: #ff0000;">Deprecated</span><span class="f_Tabletext"> - no longer in use.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">DeleteTechnology (string ID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Removes a specified MDG Technology resource from the repository.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ID: String - the ID of the technology.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Returns</span><span class="f_Tabletext" style="font-weight: bold;"> true</span><span class="f_Tabletext">, if the technology is successfully removed from the model. Returns </span><span class="f_Tabletext" style="font-weight: bold;">false</span><span class="f_Tabletext"> otherwise.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">This applies to technologies imported into pre-7.0 versions of Enterprise Architect (imported technologies), not to technologies referenced in version 7.0 and later (referenced technologies). See <a href="deploying_mdg_technologies.htm#Deploy">Deploying MDG Technologies</a> (from Add-Ins).</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><a name="ensure"></a><span class="f_Tabletext" style="font-weight: bold;">EnsureOutputVisible (string Name)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Ensures that a specified tab in the </span><span class="f_UIControl">Output </span><span class="f_Tabletext">window is visible to the user. The </span><span class="f_UIControl">Output </span><span class="f_Tabletext">window is made visible if it is hidden. </span><span class="f_Tabletext" style="font-style: italic;">See also</span><span class="f_Tabletext"> <a href="repository3.htm#Clear">ClearOutput</a>, <a href="repository3.htm#Create">CreateOutputTab</a>, <a href="repository3.htm#Write">WriteOutput</a>.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Name: String - the name of the tab to make visible.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ExecutePackageBuildScript (long ScriptOptions, string PackageGuid)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enables you to run the active package build script based on your current selection in the </span><span class="f_UIControl">Project Browser</span><span class="f_Tabletext">. You can also run a script by passing in the package GUID.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ScriptOptions: Long - the script type; can be any one of these numerical values:</span></li>
</ul>
<p class="p_Bulletlist2"><span class="f_Bulletlist2" style="font-weight: bold;">1</span><span class="f_Bulletlist2"> = Build</span></p>
<p class="p_Bulletlist2"><span class="f_Bulletlist2" style="font-weight: bold;">2</span><span class="f_Bulletlist2"> = Test</span></p>
<p class="p_Bulletlist2"><span class="f_Bulletlist2" style="font-weight: bold;">3</span><span class="f_Bulletlist2"> = Run</span></p>
<p class="p_Bulletlist2"><span class="f_Bulletlist2" style="font-weight: bold;">4</span><span class="f_Bulletlist2"> = Create Workbench Instance</span></p>
<p class="p_Bulletlist2"><span class="f_Bulletlist2" style="font-weight: bold;">5</span><span class="f_Bulletlist2"> = Debug.</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">PackageGuid: String - the ID of the package for which to run the script.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Exit</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Shuts down Enterprise Architect immediately. Used by DotNET programmers where the garbage collector does not immediately release all referenced COM objects.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetActivePerspective ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold; color: #ff0000;">Deprecated</span><span class="f_Tabletext"> - no longer in use.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetAttributeByGuid (string Guid)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="attribute.htm">Attribute</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a pointer to an attribute in the repository, located by its GUID.This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">AttributeGUID</span><span class="f_Tabletext"> property of an attribute.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Guid: String - the GUID of the attribute to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetAttributeByID (string Id)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="attribute.htm">Attribute</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a pointer to an attribute in the repository, located by its ID. This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">AttributeID</span><span class="f_Tabletext"> property of an attribute.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Id: String - the ID of the attribute to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetConnectorByGuid (string Guid)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="connector2_2.htm">Connector</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a pointer to a connector in the repository, located by its GUID. This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">ConnectorGUID</span><span class="f_Tabletext"> property of a connector.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Guid: String - the GUID of the connector to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetConnectorByID (long ConnectorID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="connector2_2.htm">Connector</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Searches the repository for a connector with a specific ID.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ConnectorID: Long - the ID of the connector to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetContextItem (object Item)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="objecttypeenum.htm">ObjectType</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Sets a pointer to an item in context within Enterprise Architect.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Item: Object - the item to point to.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Also returns the corresponding </span><span class="f_Tabletext" style="font-style: italic;">ObjectType</span><span class="f_Tabletext">.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">For additional information about </span><span class="f_Tabletext" style="font-style: italic;">ContextItems</span><span class="f_Tabletext"> and the supported ObjectTypes see the </span><span class="f_Tabletext" style="font-weight: bold;">GetContextItemType</span><span class="f_Tabletext"> method (below).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetContextItemType ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="objecttypeenum.htm">ObjectType</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns the </span><span class="f_Tabletext" style="font-style: italic;">ObjectType</span><span class="f_Tabletext"> of an item in context within Enterprise Architect. A </span><span class="f_Tabletext" style="font-style: italic;">ContextItem</span><span class="f_Tabletext"> is defined as an item selected anywhere within the Enterprise Architect GUI including:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">An item selected in the </span><span class="f_UIControl">Project Browser</span><span class="f_Bulletlist1"> </span></li>
<li><span class="f_Bulletlist1">An item selected in an open diagram</span></li>
<li><span class="f_Bulletlist1">An item selected in certain dialogs, such as the attribute </span><span class="f_UIControl">Properties</span><span class="f_Bulletlist1"> dialog.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">The supported </span><span class="f_Tabletext" style="font-style: italic;">ObjectTypes</span><span class="f_Tabletext"> can be any one of the following values:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-style: italic;">otElement </span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otPackage </span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otDiagram </span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otAttribute </span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otMethod </span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otConnector</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetContextObject ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Object</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns the current context Object.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetCounts ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a set of counts from a number of tables within the base Enterprise Architect repository. These can be used to determine whether records have been added or deleted from the tables for which information is retrieved.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetCurrentDiagram ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="diagram2.htm">Diagram</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a selected diagram.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetCurrentLoginUser (boolean GetGuid = false)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">If security is not enabled in the repository, an error is generated.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">If </span><span class="f_Tabletext" style="font-style: italic;">GetGuid</span><span class="f_Tabletext"> is </span><span class="f_Tabletext" style="font-weight: bold;">True</span><span class="f_Tabletext">, a GUID generated by Enterprise Architect representing the user is returned; otherwise the text as entered in </span><span class="f_Tabletext" style="font-style: italic;">System Users/User Details/Login</span><span class="f_Tabletext"> is returned.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetDiagramByGuid (string Guid)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="diagram2.htm">Diagram</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a pointer to a diagram using the global reference ID (global ID). This is usually found using the diagram </span><span class="f_Tabletext" style="font-style: italic;">GUID</span><span class="f_Tabletext"> property of an element, and stored for later use to open an diagram without using the collection </span><span class="f_Tabletext" style="font-style: italic;">GetAt()</span><span class="f_Tabletext"> function.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Guid: String - the GUID of the diagram to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetDiagramByID (long DiagramID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="diagram2.htm">Diagram</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Gets a pointer to a diagram using an absolute reference number (local ID). This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">DiagramID</span><span class="f_Tabletext"> property of an element, and stored for later use to open a diagram without using the collection </span><span class="f_Tabletext" style="font-style: italic;">GetAt()</span><span class="f_Tabletext"> function.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 15px; list-style-position: outside;">
<li><span class="f_Tabletext">DiagramID: Long - the ID of the diagram to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetElementByGuid (string Guid)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="element2.htm">Element</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a pointer to an element in the repository, using the element's GUID reference number (global ID). This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">ElementGUID</span><span class="f_Tabletext"> property of an element, and stored for later use to open an element without using the collection </span><span class="f_Tabletext" style="font-style: italic;">GetAt()</span><span class="f_Tabletext"> function.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Guid: String - the GUID of the element to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetElementByID (long ElementID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="element2.htm">Element</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Gets a pointer to an element using an absolute reference number (local ID). This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">ElementID</span><span class="f_Tabletext"> property of an element, and stored for later use to open an element without using the collection </span><span class="f_Tabletext" style="font-style: italic;">GetAt()</span><span class="f_Tabletext"> function.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ElementID: Long - the ID of the element to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetElementsByQuery (string QueryName, string SearchTerm)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enables the user to run a search in Enterprise Architect, returning the result as a collection.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">QueryName: String - the name of the search to run, for example </span><span class="f_Bulletlist1" style="font-style: italic;">'Simple'</span><span class="f_Bulletlist1">.</span></li>
<li><span class="f_Bulletlist1">SearchTerm: String - the term to search for.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">For example </span><span class="f_Tabletext" style="font-style: italic;">GetElementsByQuery('Simple','Class1'), </span><span class="f_Tabletext">w</span><span class="f_Tabletext">here results contain elements with </span><span class="f_Tabletext" style="font-style: italic;">Class1</span><span class="f_Tabletext"> in the </span><span class="f_Tabletext" style="font-weight: bold;">Name</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-weight: bold;">Notes</span><span class="f_Tabletext"> fields.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetElementSet ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="collection.htm">Collection</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a set of elements as a collection based on an input of element ID numbers in comma separated form.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">For example: </span><span class="f_Tabletext" style="font-style: italic;">GetElementSet(&quot;34,56,21,5&quot;).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetFieldFromFormat (string Format, string Text)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Converts a field from your preferred format to Enterprise Architect's internal format. Returns the field in Enterprise Architect's internal format.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Format: String - The format to convert the field from. Valid formats are:</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li><span class="f_Bulletlist2">HTML - Full HTML</span></li>
<li><span class="f_Bulletlist2">RTF - Rich Text Format</span></li>
<li><span class="f_Bulletlist2">TXT - Plain text</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Text: String - The field to be converted.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetFormatFromField (string Format, string Text)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">After accessing a field that contains formatting, use this method to convert it to your preferred format. Returns the field in the format specified.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Format: String - The format to convert the field to. Valid formats are:</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li><span class="f_Bulletlist2">HTML - Full HTML</span></li>
<li><span class="f_Bulletlist2">RTF - Rich Text Format</span></li>
<li><span class="f_Bulletlist2">TXT - Plain text</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Text: String - The field to be converted.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetLastError () </span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String </span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a string value describing the most recent error that occurred in relation to this object.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">This function is rarely used as an exception is thrown when an error occurs.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetMethodByGuid (string Guid)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="method.htm">Method</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a pointer to a method in the repository. This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">MethodGUID</span><span class="f_Tabletext"> property of a method.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Guid: String - the GUID of the method to look for.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetMethodById (string Id)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="method.htm">Method</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a pointer to a method in the repository. This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">MethodID</span><span class="f_Tabletext"> property of a method.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Id: String - the ID of the method to look for.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetPackageByGuid (string Guid)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="package_2.htm">Package</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns a pointer to a package in the repository using the package's GUID reference number (global ID). This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">PackageGUID</span><span class="f_Tabletext"> property of the package.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Guid: String - the GUID of the package to look for.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Each package in the model also has an associated element with the same GUID, so if you have an element with </span><span class="f_Tabletext" style="font-style: italic;">Type=&quot;Package&quot;</span><span class="f_Tabletext"> then you can load the package by calling:</span></p>
<p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">GetPackageByGuid(Element.ElementGUID).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetPackageByID (long PackageID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="package_2.htm">Package</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Get a pointer to a package using an absolute reference number (local ID). This is usually found using the </span><span class="f_Tabletext" style="font-style: italic;">PackageID</span><span class="f_Tabletext"> property of an package, and stored for later use to open a package without using the collection </span><span class="f_Tabletext" style="font-style: italic;">GetAt() </span><span class="f_Tabletext">function.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">PackageID: Long - the ID of the package to locate.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetProjectInterface ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="project_2.htm">Project</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Return a pointer to the <a href="projectinterface.htm">EA.Project interface</a> (the XML-based automation server for Enterprise Architect). Use this interface to work with Enterprise Architect using XML, and also to access utility functions for loading diagrams, running reports and so on.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetReferenceList (String Type)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="reference3.htm">Reference</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Uses the list type to get a pointer to a </span><span class="f_Tabletext" style="font-style: italic;">Reference List</span><span class="f_Tabletext"> object.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Type: String - specifies the list type to get; valid list types are:</span><br>
<span class="f_Bulletlist1">&nbsp;</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Diagram</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Element</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Constraint</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Requirement</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Connector</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Status</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Cardinality</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Effort</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Metric</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Scenario</span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Status </span><span class="f_Bulletlist1">and</span><span class="f_Bulletlist1" style="font-style: italic;"> </span><br>
<span class="f_Bulletlist1" style="font-style: italic;">Test</span><span class="f_Bulletlist1">.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetTechnologyVersion (string ID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns the version of a specified MDG Technology resource.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ID: String - the specified technology ID.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetTreeSelectedItem (Object SelectedItem)<a name="gettree"></a></span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="objecttypeenum.htm">ObjectType</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Gets an object variable and type corresponding to the currently selected item in the tree view.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">To use this function, create a generic object variable and pass this as the parameter. Depending on the return type, cast it to a more specific type.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">The object passed back through the parameter can be a package, element, diagram, attribute or operation object.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">SelectedItem: Object - the object to get the variable and type for.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetTreeSelectedItemType ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="objecttypeenum.htm">ObjectType</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns the type of the object currently selected in the tree. One of:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-style: italic;">otDiagram</span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otElement</span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otPackage</span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otAttribute</span></li>
<li><span class="f_Bulletlist1" style="font-style: italic;">otMethod.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetTreeSelectedObject ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Object</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">The related method </span><span class="f_Tabletext" style="font-style: italic;"><a href="repository3.htm#Gettree">GetTreeSelectedItem</a>()</span><span class="f_Tabletext"> has an output parameter that is inaccessible by some scripting languages. As an alternative, this method provides the selected item through the return value.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">GetTreeSelectedPackage ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;"><a href="package_2.htm">Package</a></span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Returns the package in which the currently selected tree view object is contained.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">HasPerspective (string Perspective)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold; color: #ff0000;">Deprecated</span><span class="f_Tabletext"> - no longer in use.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ImportPackageBuildScripts (string PackageGuid, string BuildScriptXML)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Imports build scripts into a package in Enterprise Architect.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">PackageGuid: String - the GUID of the package into which to import the build scripts.</span></li>
<li><span class="f_Bulletlist1">BuildScriptXML: String - the build script XML data, which you can export from within Enterprise Architect.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ImportTechnology (string Technology)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Installs a given MDG Technology resource into the repository.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Technology: String - the contents of the technology resource file.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Returns </span><span class="f_Tabletext" style="font-weight: bold;">True</span><span class="f_Tabletext">, if the technology is successfully loaded into the model. Otherwise returns </span><span class="f_Tabletext" style="font-weight: bold;">False</span><span class="f_Tabletext">.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">This applies to technologies imported into pre-7.0 versions of Enterprise Architect (imported technologies), not to technologies referenced in version 7.0 and later (referenced technologies). See <a href="deploying_mdg_technologies.htm#Deploy">Deploying MDG Technologies</a> (from Add-Ins).</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">IsTabOpen ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Checks whether a named tab is open and active.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">TabName: String - the name of the tab to check for.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Returns:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-weight: bold;">2</span><span class="f_Bulletlist1"> to indicate that a tab is open and active (top-most)</span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">1</span><span class="f_Bulletlist1"> to indicate that it is open but not top-most, or</span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">0</span><span class="f_Bulletlist1"> to indicate that it is not visible at all.</span></li>
</ul>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">TabName is case-sensitive.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">IsTechnologyEnabled (string ID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Checks whether a specified technology is enabled in Enterprise Architect.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ID: String - the technology ID to check for.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Returns </span><span class="f_Tabletext" style="font-weight: bold;">True</span><span class="f_Tabletext"> if the MDG Technology resource is enabled. Otherwise returns </span><span class="f_Tabletext" style="font-weight: bold;">False</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">IsTechnologyLoaded (string ID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Checks whether a specified technology is loaded into the repository.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">ID: String - the technology ID to check for.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Returns </span><span class="f_Tabletext" style="font-weight: bold;">True</span><span class="f_Tabletext"> if the MDG Technology resource is loaded into the repository. Otherwise returns </span><span class="f_Tabletext" style="font-weight: bold;">False</span><span class="f_Tabletext">.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">OpenDiagram (long DiagramID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Provides a method for an automation client or Add-In to open a diagram. The diagram is added to the tabbed list of open diagrams in the main Enterprise Architect view.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">DiagramID: Long - the ID of the diagram to open.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">OpenFile (string Filename)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">This is the main point for opening an Enterprise Architect project file from an automation client, and working with the contained objects.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Filename: String - the filename of the Enterprise Architect project to open. </span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">If the required project is a DBMS repository, and you have created a shortcut .EAP file containing the database connection string, you can call this shortcut file to access the DBMS repository.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">You can also connect to a SQL database by passing in the connection string itself instead of a filename. A valid connection string can be obtained from the </span><span class="f_UIControl"><a href="open_a_project.htm">Open Project</a></span><span class="f_Tabletext"> dialog by selecting a recently opened SQL repository.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">OpenFile2 (string FilePath, string Username, string Password)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">As for </span><span class="f_Tabletext" style="font-style: italic;">OpenFile() </span><span class="f_Tabletext">except this enables the specification of a password.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">RefreshModelView (long PackageID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Reloads a package or the entire model, updating the user interface.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">PackageID: Long - the ID of the package to reload: if </span><span class="f_Bulletlist1" style="font-weight: bold;">0</span><span class="f_Bulletlist1">, the entire model is reloaded; if a valid package ID, only that package is reloaded.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">RefreshOpenDiagrams (boolean FullReload)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Refreshes the diagram contents for all diagrams open in Enterprise Architect.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">FullReload: Boolean - if </span><span class="f_Bulletlist1" style="font-weight: bold;">false</span><span class="f_Bulletlist1"> the displayed contents of elements and connectors are refreshed in each diagram; if </span><span class="f_Bulletlist1" style="font-weight: bold;">true</span><span class="f_Bulletlist1"> each of the diagrams is completely reloaded from the repository.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ReloadDiagram (long DiagramID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Reloads a specified diagram. This would commonly be used to refresh a visible diagram after code import/export or other batch process where the diagram requires complete refreshing.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">DiagramID: Long - the ID of the diagram to be reloaded.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">RemoveOutputTab (string Name)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Removes a specified tab from the </span><span class="f_UIControl">Output </span><span class="f_Tabletext">window.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Name: String - the name of the tab to be removed.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">RunModelSearch (string sQueryName, string sSearchTerm, string sSearchOptions, string sSearchData)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Runs a search, displaying the results in Enterprise Architect's </span><span class="f_UIControl">Model Search</span><span class="f_Tabletext"> window.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">sQueryName: String - the name of the search to run, for example </span><span class="f_Bulletlist1" style="font-style: italic;">Simple.</span></li>
<li><span class="f_Bulletlist1">sSearchTerm: String - the term to search for.</span></li>
<li><span class="f_Bulletlist1">sSearchOptions: String - currently not being used.</span></li>
<li><span class="f_Bulletlist1">sSearchData: String - enables you to supply a list of results in the form of XML, which is appended onto the result list in Enterprise Architect. See <a href="xml_format_search_data.htm">XML Format</a>; this parameter is not mandatory so pass in an empty string to run the search as per normal.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">SaveAllDiagrams ()</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Saves all open diagrams.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">SaveAuditLogs (string FilePath, object StartDateTime, object EndDateTime)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">Boolean</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Saves the Audit Logs contained within a model to a specified file.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">FilePath: String - the file to save the Audit Logs to.</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">StartDateTime: Variant [DateTime] - the earliest date and time of log entries to save.</span></li>
<li><span class="f_Bulletlist1">EndDateTime; Variant [DateTime] - the latest date and time of log entries to save.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">If </span><span class="f_Tabletext" style="font-style: italic;">StartDateTime</span><span class="f_Tabletext"> and </span><span class="f_Tabletext" style="font-style: italic;">EndDateTime</span><span class="f_Tabletext"> are not null then only log items that fall into this period are saved.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Returns </span><span class="f_Tabletext" style="font-weight: bold;">true</span><span class="f_Tabletext"> for success, </span><span class="f_Tabletext" style="font-weight: bold;">false</span><span class="f_Tabletext"> for failure.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 4px 2px 4px 2px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" bgcolor="#efeff7" style="background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td bgcolor="#f7f7ff" style="background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">This might fail if the user logged into the model does not have the correct access permission.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">SaveDiagram (long DiagramID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Saves an open diagram. Assumes the diagram is open in the main user interface Tab list.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">DiagramID: Long - the ID of the diagram to save.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ShowDynamicHelp (string Topic)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Shows a help topic as a view.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Topic: String - specifies the help topic.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ShowInProjectView (Object Item)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Selects a specified object in the </span><span class="f_UIControl">Project Browser</span><span class="f_Tabletext">. </span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Item: Object - the object to highlight.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">Accepted object types are </span><span class="f_Tabletext" style="font-style: italic;">Package</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-style: italic;">Element</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-style: italic;">Diagram</span><span class="f_Tabletext">, </span><span class="f_Tabletext" style="font-style: italic;">Attribute</span><span class="f_Tabletext">, and </span><span class="f_Tabletext" style="font-style: italic;">Method</span><span class="f_Tabletext">. An exception is thrown if the object is of an invalid type.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ShowProfileToolbox (string Technology, string Profile, boolean Show)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Shows/hides the contents of a specified technology or profile in the Enterprise Architect UML </span><span class="f_UIControl">Toolbox</span><span class="f_Tabletext">.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Technology: String - the ID of the technology.</span></li>
<li><span class="f_Bulletlist1">Profile: String - the ID of the profile.</span></li>
<li><span class="f_Bulletlist1">Show: Boolean - if</span><span class="f_Bulletlist1" style="font-weight: bold;"> true</span><span class="f_Bulletlist1">, show the technology or profile; if</span><span class="f_Bulletlist1" style="font-weight: bold;"> false</span><span class="f_Bulletlist1">, hide the technology or profile.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">To show/hide a profile in the </span><span class="f_UIControl">Toolbox</span><span class="f_Tabletext">, specify the profile's ID value in the </span><span class="f_Tabletext" style="font-style: italic;">Profile</span><span class="f_Tabletext"> parameter and set the </span><span class="f_Tabletext" style="font-style: italic;">Technology</span><span class="f_Tabletext"> parameter to a null string.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">To show/hide a technology in the </span><span class="f_UIControl">Toolbox</span><span class="f_Tabletext">, specify the technology's ID in the </span><span class="f_Tabletext" style="font-style: italic;">Technology</span><span class="f_Tabletext"> parameter and set the </span><span class="f_Tabletext" style="font-style: italic;">Profile</span><span class="f_Tabletext"> parameter to a null string.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">ShowWindow (long Show)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Shows or hides Enterprise Architect.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Show: Long.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">SQLQuery (string SQL)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">String</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enables execution of a SQL </span><span class="f_Tabletext" style="font-style: italic;">select</span><span class="f_Tabletext"> statement against the current repository. Returns an XML formatted string value of the resulting recordset.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">SQL</span><span class="f_Bulletlist1" style="font-style: italic;">:</span><span class="f_Bulletlist1"> String - contains the SQL Select statement.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="206" style="width:206px; border: solid 1px #000000;"><p class="p_Tabletext"><a name="write"></a><span class="f_Tabletext" style="font-weight: bold;">WriteOutput (string Name, string String, long ID)</span></p>
</td>
<td valign="top" width="88" style="width:88px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-style: italic;">&nbsp;</span></p>
</td>
<td valign="top" width="385" style="width:385px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Writes text to a specified tab in the </span><span class="f_UIControl">Output </span><span class="f_Tabletext">window, and associates the text with an ID. </span><span class="f_Tabletext" style="font-style: italic;">See also</span><span class="f_Tabletext"> <a href="repository3.htm#Clear">ClearOutput</a>, <a href="repository3.htm#Create">CreateOutputTab</a>, <a href="repository3.htm#Ensure">EnsureOutput Visible</a>.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">Parameters:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Name: String - specifies the tab on which to display the text.</span></li>
<li><span class="f_Bulletlist1">String: String - specifies the text to display.</span></li>
<li><span class="f_Bulletlist1">ID: Long - specifies the ID the text is associated with.</span></li>
</ul>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
